from django.db import models

class BaseModel(models.Model):
    isshow = models.BooleanField(default=True,verbose_name="是否显示")
    order= models.IntegerField(default=1,verbose_name="排序")
    addtime = models.DateTimeField(auto_now_add=True,verbose_name="创建时间")
    class Meta:
        abstract = True# 抽象类，不生成表